package com.oct.ywsc.job;

import com.alibaba.fastjson2.JSONObject;

import java.util.List;
import java.util.Map;

public interface ITransRule {

    /**
     * 规则名词
     * @return
     */
    public String getName();

    /**
     * 规则是否匹配
     * @param tableName
     * @param opType
     * @return
     */
    public boolean isMatch(String tableName,String opType);

    /**
     * 消息转换
     * @param msg
     * @return
     */
    public List<Map<String,Object>> doTrans(Map<String,String> msg);
}
